package cn.huiyunche.base.service.enums;

public enum BFeeTypeEnum {

    EXTRACT(10, "提车费"),//提车费
    DELIVERY(20, "交车费"),//交车费
    INSURANCE(30, "保险费"),//保险费
    SHIPPING(40, "运输费"),//运输费
    INVOICE_TAX(50, "发票费"),//运输费
    //	LINE_SUBSIDIES(50,"线路补贴");//路线补贴（始发地和目的地综合级别系数补贴）
    STARTING_PRICE(60, "起步费"),
    KM(70, "里程费"),
    TRAILER(80, "特型车加价");


    private final int value;
    private final String text;

    BFeeTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static BFeeTypeEnum getByValue(int value) {
        for (BFeeTypeEnum temp : BFeeTypeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
